# $Id: PKGBUILD 82882 2013-01-25 09:56:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tor Krill <tor@krill.nu>

pkgname=perl-json-xs
pkgver=2.33
pkgrel=1
pkgdesc="JSON::XS - JSON serialising/deserialising, done correctly and fast"
url="http://search.cpan.org/dist/JSON-XS/"
license=("GPL")
arch=('i686' 'x86_64')
depends=('perl' 'perl-common-sense')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-$pkgver.tar.gz)
md5sums=('6a1eafeadc1680a806ec2eb1798f6084')

build() {
  cd  $srcdir/JSON-XS-$pkgver
# eval `perl -V:archname`
  perl Makefile.PL INSTALLDIRS=vendor
  make
}
package() {
  cd  $srcdir/JSON-XS-$pkgver
  make DESTDIR=$pkgdir install

  find $pkgdir -name '.packlist' -delete && \
  find $pkgdir -name '*.pod' -delete
}
